package com.synnex.wms.service;
/**
 * 陪护 接口实现类，service
 * */

import com.synnex.wms.mapper.PeihuMapper;
import com.synnex.wms.pojo.Peihu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class PeihuService {

	@Autowired
	private PeihuMapper PeihuMapper;
	
	public int deleteByPrimaryKey(Integer id){
		return PeihuMapper.deleteByPrimaryKey(id);
	}

    public int insert(Peihu record){
    	return PeihuMapper.insert(record);
    }

    public int insertSelective(Peihu record){
    	return PeihuMapper.insertSelective(record);
    }

    public Peihu selectByPrimaryKey(Integer id){
    	return PeihuMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Peihu record){
    	return PeihuMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Peihu record){
    	return PeihuMapper.updateByPrimaryKey(record);
    }
    
    //查询所有
    public List<Peihu> selectBy(){
    	return PeihuMapper.selectBy();
    }
    
    public List<Peihu> showlist(Peihu Peihu){
    	return PeihuMapper.showlist(Peihu);
    }
    public int pagecount(Peihu Peihu){
    	return PeihuMapper.pagecount(Peihu);
    }
    
    
}
